package com.dc.project.workflow.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.dc.common.validated.DeleteGroup;
import com.dc.common.validated.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 流程分类表(WfCategory)实体类
 *
 * @author zhuangcy
 * @since 2021-07-03 09:59:49
 */
@TableName("wf_category")
@Data
@ApiModel(value = "流程分类表")
public class WfCategory implements Serializable {
    private static final long serialVersionUID = 719482275755105777L;
    /**
     * 分类ID
     */
    @NotNull(message = "分类ID不能为空", groups = {UpdateGroup.class, DeleteGroup.class})
    @TableId(value = "category_id", type = IdType.AUTO)
    @ApiModelProperty(name = "categoryId", value = "分类ID")
    private Integer categoryId;
    /**
     * 上级ID
     */
    @TableField(value = "parent_id")
    @ApiModelProperty(name = "parentId", value = "上级ID")
    private Integer parentId;
    /**
     * 分类编码
     */
    @TableField(value = "category_code")
    @ApiModelProperty(name = "categoryCode", value = "分类编码")
    private String categoryCode;
    /**
     * 分类名称
     */
    @TableField(value = "category_name")
    @ApiModelProperty(name = "categoryName", value = "分类名称")
    private String categoryName;
    /**
     * bean名称
     */
    @TableField(value = "bean_name")
    @ApiModelProperty(name = "beanName", value = "bean名称")
    private String beanName;
    /**
     * bean路径
     */
    @TableField(value = "bean_class")
    @ApiModelProperty(name = "beanClass", value = "bean路径")
    private String beanClass;
    /**
     * 排序
     */
    @TableField(value = "sort_num")
    @ApiModelProperty(name = "sortNum", value = "排序")
    private Integer sortNum;
    /**
     * 备注
     */
    @TableField(value = "remark")
    @ApiModelProperty(name = "remark", value = "备注")
    private String remark;
    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @TableField(value = "del_flag")
    @ApiModelProperty(name = "delFlag", value = "删除标志（0代表存在 1代表删除）")
    private String delFlag;
    /**
     * 创建者id
     */
    @TableField(value = "created_id", fill = FieldFill.INSERT)
    @ApiModelProperty(name = "createdId", value = "创建者id")
    private Integer createdId;
    /**
     * 创建者
     */
    @TableField(value = "created_by", fill = FieldFill.INSERT)
    @ApiModelProperty(name = "createdBy", value = "创建者")
    private String createdBy;
    /**
     * 创建时间
     */
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    @ApiModelProperty(name = "createdTime", value = "创建时间")
    private Date createdTime;
    /**
     * 更新者id
     */
    @TableField(value = "updated_id", fill = FieldFill.UPDATE)
    @ApiModelProperty(name = "updatedId", value = "更新者id")
    private Integer updatedId;
    /**
     * 更新者
     */
    @TableField(value = "updated_by", fill = FieldFill.UPDATE)
    @ApiModelProperty(name = "updatedBy", value = "更新者")
    private String updatedBy;
    /**
     * 更新时间
     */
    @TableField(value = "updated_time", fill = FieldFill.UPDATE)
    @ApiModelProperty(name = "updatedTime", value = "更新时间")
    private Date updatedTime;


}